import request from '@/utils/request'

let ProxyCategoryApi = {

  /*分类管理*/
  catList(data, errorback) {
    return request._get('/proxy/product.proxyCategory/index', data, errorback);
  },
  /*分类添加*/
  catAdd(data, errorback) {
    return request._post('/proxy/product.proxyCategory/add', data, errorback);
  },
  /*分类删除*/
  catDel(data, errorback) {
    return request._post('/proxy/product.proxyCategory/delete', data, errorback);
  },
  /*分类修改*/
  catEdit(data, errorback) {
    return request._post('/proxy/product.proxyCategory/edit', data, errorback);
  },

  productRecommend(data, errorback) {
    return request._get('/proxy/product.recommend/list', data, errorback);
  },
  productRecommendAddList(data, errorback) {
    return request._post('/proxy/product.recommend/addList', data, errorback);
  },
  productRecommendEditList(data, errorback) {
    return request._post('/proxy/product.recommend/editList', data, errorback);
  },
  productRecommendDelList(data, errorback) {
    return request._post('/proxy/product.recommend/delList', data, errorback);
  }
}

export default ProxyCategoryApi;
